import {request} from "@/utils/request.js"


export const getdailyList = (params) => {
    return request("/tbx/online/cgform/api/getData/1777045820414517250", "get", params)
}

export const getdailyDetail = (id) => {
    return request(`/tbx/online/cgform/api/form/1777045820414517250/${id}`, "get")
}

export const postdaily = (data) => {
    return request("/tbx/online/cgform/api/form/1777045820414517250?tabletype=1", "post", data)
}

export const putdaily = (data) => {
    return request("/tbx/online/cgform/api/form/1777045820414517250?tabletype=1", "put", data)
}


export const deleteDaily = (id) => {
    return request(`/tbx/online/cgform/api/form/1777045820414517250/${id}`, "delete")
}


export const getVisitList = (params) => {
    return request("/tbx/online/cgform/api/getData/f81ef8bf43ba41cd92a72b8458cc30c7", "get", params)
}

export const getVisitDetail = (id) => {
    return request(`/tbx/online/cgform/api/form/f81ef8bf43ba41cd92a72b8458cc30c7/${id}`, "get")
}

export const postVisit = (data) => {
    return request("/tbx/online/cgform/api/form/f81ef8bf43ba41cd92a72b8458cc30c7?tabletype=1", "post", data)
}

export const putVisit = (data) => {
    return request("/tbx/online/cgform/api/form/f81ef8bf43ba41cd92a72b8458cc30c7?tabletype=1", "put", data)
}


export const deleteVisit = (id) => {
    return request(`/tbx/online/cgform/api/form/f81ef8bf43ba41cd92a72b8458cc30c7/${id}`, "delete")
}


export const getShopList = (params) => {
    return request("/tbx/kangyang/cuCustomer/list", "get", params)
}

export const getEquipmentList = (params) => {
    return request("/tbx/online/cgform/api/getData/61c87a2f1f0046b2a0d93f0612ee5ac9", "get", params)
}

export const getEquipmentRunnerList = (params) => {
    return request("/tbx/online/cgform/api/getData/09015351151f4a69b4e4066547cdfe75", "get", params)
}

export const getMdDeviceLogList = (params) => {
    return request("/tbx/kangyang/mdDeviceLog/list", "get", params)
}
export const getMdDeviceLogDataList = (params) => {
    return request("/tbx/kangyang/mdDeviceLog/listData", "get", params)
}
